package ve.lm.hrms_cy.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.LocalDateTime;

@TableName("announcement")
public class Announcement {

    private Long id;

    @TableField("content")
    private String content;

    @TableField("createTime")
    private LocalDateTime createTime;

    @TableField("status")
    private String status;

    public Announcement() {}

    @JsonCreator
    public Announcement(
            @JsonProperty("content") String content,
            @JsonProperty("createTime") LocalDateTime createTime,
            @JsonProperty("status") String status
    ) {
        this.content = content;
        this.createTime = createTime;
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
